package cn.pink.core;

import lombok.ToString;

import java.io.Serializable;

/**
 * 节点信息
 * @Author: pink
 * @Date: 2022/6/13 16:08
 */
@ToString
public class NodeInfo implements Serializable {
    /** 节点id gate0 game1 ... */
    private String nodeId;

    /** portId */
    private String portId;

    /** 节点类型 */
    private NodeType nodeType;

    public NodeInfo(String nodeId, String portId, NodeType nodeType) {
        this.nodeId = nodeId;
        this.portId = portId;
        this.nodeType = nodeType;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getPortId() {
        return portId;
    }

    public void setPortId(String portId) {
        this.portId = portId;
    }

    public NodeType getNodeType() {
        return nodeType;
    }

    public void setNodeType(NodeType nodeType) {
        this.nodeType = nodeType;
    }
}
